package com.hmall.api.cart;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "cart-service", path = "/carts")
public interface CartClient {

    /**
     * 批量删除购物车中商品
     * @param ids
     */
    @DeleteMapping
    public void deleteCartItemByIds(@RequestParam("ids") List<Long> ids);

}